/**
 * @(#)OrderCart.java, 2018/2/2.
 * <p/>
 * Copyright 2018 Kerr Wang, Inc. All rights reserved.
 * KERRWANG PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package org.wangzx.exercise.meta.po;

import org.wangzx.exercise.enums.BuyStateType;

/**
 * @author hzwangzuxiang(ahscwzx@163.com)
 */
public class OrderCart {
    /**
     * 主键id
     */
    private long id;

    /**
     * 购买的商品id
     */
    private long itemId;

    /**
     * 购买的商品数量
     */
    private int count;

    /**
     * 购买人id
     */
    private long buyer;

    /**
     * 商品状态类型
     */
    private BuyStateType state;

    /**
     * 商品购买价格
     */
    private double price;

    /**
     * 创建时间
     */
    private long createTime;

    /**
     * 更新时间
     */
    private long updateTime;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getItemId() {
        return itemId;
    }

    public void setItemId(long itemId) {
        this.itemId = itemId;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public long getBuyer() {
        return buyer;
    }

    public void setBuyer(long buyer) {
        this.buyer = buyer;
    }

    public BuyStateType getState() {
        return state;
    }

    public void setState(BuyStateType state) {
        this.state = state;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}
